package com.myown.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 测试类
 *
 * @author: LC
 * @date 2022/3/1 4:22 下午
 * @ClassName: DemoController
 */
@Controller
@RequestMapping("/demo")
public class DemoController {


    @RequestMapping("/hello")
    public String hello(Model model) {
        model.addAttribute("name", "example");
        return "hello";
    }
}
